package com.ymttest.database.sqlwapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtAlipayNotifyLog;
import com.ymttest.utils.EnvSetup;

public class YmtAlipayNotifyLogWapper {
    SqlManager manager;

    public YmtAlipayNotifyLogWapper() {
        manager = new SqlManager("ymt" + EnvSetup.getEnv());
    }

    /**
     * 查询第三方返回报文
     * 
     * @param paymentId
     * @return
     * @throws InterruptedException
     */
    public List<YmtAlipayNotifyLog> selectYmtAlipayNotifyLogByPaymentId(String bizNo) throws InterruptedException {
        Map m = new HashMap<String, String>();
        m.put("bizNo", bizNo);
        List<YmtAlipayNotifyLog> result = manager.getSelectResults(
                "com.ymttest.database.mapping.YmtAlipayNotifyLogMapper.selectYmtAlipayNotifyLogByPaymentId", m);
        return result;
    }
}
